// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';

/** addCollect POST /api/collect/add */
export async function addCollectUsingPost(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.addCollectUsingPOSTParams,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/api/collect/add', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** delCollect POST /api/collect/del */
export async function delCollectUsingPost(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.delCollectUsingPOSTParams,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/api/collect/del', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** listCollectByUserId GET /api/collect/list */
export async function listCollectByUserIdUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.listCollectByUserIdUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseListNovelVO_>('/api/collect/list', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}
